home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_40835.txt < prev    next >
Text File  |  1991-02-27  |  2KB  |  97 lines

  1. -- card: 40835 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0007
  11. -- rect: left=30 top=78 right=296 bottom=478
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 4
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20.  
  21.  
  22. -- part 2 (button)
  23. -- low flags: 00
  24. -- high flags: 0001
  25. -- rect: left=13 top=29 right=57 bottom=351
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: New Button
  34.  
  35.  
  36. -- part contents for card part 1
  37. ----- text -----
  38. ----------------------------- TC version --------------------------
  39.  
  40.  
  41. /*
  42. *   FILE:    class.h
  43. *   AUTHOR:  R.G.
  44. *   CREATED: June 25, 1990
  45. *   
  46. *   header file defines Generic_Class
  47. */
  48.  
  49. # define _H_class        /* prevents header "re-inclusion" in TC */
  50.  
  51. /******************************************************************
  52. *   root class for all classes
  53. ******************************************************************/
  54. struct  Generic_Class:indirect
  55. {
  56.     int     init(void);
  57.     int     destroy(void);
  58. };
  59.  
  60.  
  61. ---------------------------- C++ version --------------------------
  62.  
  63.  
  64. /*
  65. *   FILE:    class.h
  66. *   AUTHOR:  R.G.
  67. *   CREATED: June 25, 1990
  68. *   
  69. *   header file defines Generic_Class
  70. */
  71.  
  72. # ifndef class_h       /* prevents header "re-inclusion" in C++ */
  73. # define class_h
  74.  
  75. /******************************************************************
  76. *   root class for all classes
  77. ******************************************************************/
  78. struct  Generic_Class
  79. {
  80.     virtual int     init(void);
  81.     virtual int     destroy(void);
  82. };
  83.  
  84. # endif
  85.  
  86.  
  87. -- part contents for background part 7
  88. ----- text -----
  89. 131
  90.  
  91. -- part contents for background part 6
  92. ----- text -----
  93. Object-oriented program using multiple source and header files
  94.  
  95. -- part contents for background part 4
  96. ----- text -----
  97. File 1 of 7 demonstrating TC/C++ object-oriented programming: